import multiprocessing as mu
import time

def worker(name):
    time.sleep(6)
    print(time.strftime("%Y-%m-%d")+f"  {name}")

def main():
    pool = mu.Pool(processes=8)
    for item in range(8):
        pool.apply_async(worker, args=(item,))
    pool.close()
    pool.join()


if __name__=="__main__":
    main()
